package media
{
	import mx.collections.ArrayCollection;

	[Bindable]
	[RemoteClass(alias="com.serverplic.media.Point")]
	public class MediaPoint
	{
		private var mID:int;
		private var mName:String;
		private var mTitle:String;
		private var mQRCode:String;
		private var mPosX:int;
		private var mPosY:int;
		private var mShortDescription:String;
		private var mDescription:String;
		private var mEventID:int;
		private var mPictureList:ArrayCollection;
		private var mTextList:ArrayCollection;
		
		public function get id():int
		{
			return mID;
		}
		public function set id(_id:int):void
		{
			mID = _id;
		}
		
		public function get name():String
		{
			return mName;
		}
		public function set name(_name:String):void
		{
			mName = _name;
		}
		
		public function get title():String
		{
			return mTitle;
		}
		public function set title(_title:String):void
		{
			mTitle = _title;
		}
		
		public function get QRCode():String
		{
			return mQRCode;
		}
		public function set QRCode(_qrcode:String):void
		{
			mQRCode = _qrcode;
		}
		
		public function get posX():int
		{
			return mPosX;
		}
		public function set posX(_posX:int):void
		{
			mPosX = _posX;
		}
		
		public function get posY():int
		{
			return mPosY;
		}
		public function set posY(_posY:int):void
		{
			mPosY = _posY;
		}
		
		public function get shortDescription():String
		{
			return mShortDescription;
		}
		public function set shortDescription(_shortDescription:String):void
		{
			mShortDescription = _shortDescription;
		}
		
		public function get description():String
		{
			return mDescription;
		}
		public function set description(_description:String):void
		{
			mDescription = _description;
		}
		
		public function get eventId():int
		{
			return mEventID;
		}
		public function set eventId(_eventID:int):void
		{
			mEventID = _eventID;
		}
		
		public function get pictureList():ArrayCollection
		{
			return mPictureList;
		}
		public function set pictureList(_pictureList:ArrayCollection):void
		{
			mPictureList = _pictureList;
		}
		
		public var deletedPictureList:ArrayCollection = new ArrayCollection();
		public var deletedTextList:ArrayCollection = new ArrayCollection();
		
		public function get textList():ArrayCollection
		{
			return mTextList;
		}
		public function set textList(_textList:ArrayCollection):void
		{
			mTextList = _textList;
		}
		
		public function toString():String
		{
			var txt:String = "Point\n";
			txt += "ID : " + mID + "\n";
			txt += "Name : " + mName + "\n";
			txt += "Title : " + title + "\n";
			txt += "QRCode : " + mQRCode + "\n";
			txt += "Position : (" + mPosX + "," + mPosY + ")\n";
			txt += "Short Description : " + mShortDescription + "\n";
			txt += "Description : " + mDescription + "\n";
			txt += "Parent Event : " + mEventID + "\n";
			txt += "Picture List : " + mPictureList + "\n";
			txt += "Text List : " + mTextList + "\n";
			return txt;
		}
		
		public var Visited:Boolean = false;
		public var pathID:int = 0;
	}
}